package single;

/**
 * 饿汉式
 * zhang he qiang
 *
 * @Date 2020/6/16
 **/


public class HungrySingleton {
    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
